package demo7;

/**
 * @Author 12629
 * @Description：
 */
public class Test {

    public static void main(String[] args)
            throws CloneNotSupportedException{
        Person person = new Person("zhansan");

        Person person2 = (Person)person.clone();

        //System.out.println(person2);
        System.out.println("修改前：");
        System.out.println( person.money.money);
        System.out.println( person2.money.money);

        person2.money.money = 19.9;

        System.out.println("修改后：");
        System.out.println( person.money.money);
        System.out.println( person2.money.money);

    }
}
